package com.foreveross.taskservice.application.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.apache.log4j.Logger;
import org.openkoala.koala.commons.domain.jpa.KoalaEntityRepositoryJpa;

public class BaseJpaApplicationImpl extends KoalaEntityRepositoryJpa {
	public Logger log=Logger.getLogger(getClass());
	@PersistenceContext
	 public void setEntityManager(EntityManager entityManager) {
        super.setEntityManager(entityManager);
    }

	/*
	 * @Override public EntityManager getEntityManager() {
	 * if(entityManager==null){ return
	 * InstanceFactory.getInstance(EntityManager.class, "default"); } return
	 * entityManager; }
	 */
}
